class ProgramInformation < ActiveRecord::Base
  
  attr_accessible :id, :crid, :language, :genreId, :episodeOfId, :memberOfId, 
    :howRelatedId,:program_information_table_id,
    :title_attributes, :synopses_attributes,:keywordprogram_attributes,:credit_item_attributes,
    :episode_of_attributes, :member_of_attributes
  
  belongs_to :program_information_table
  
  has_many :title, :dependent => :delete_all
  has_many :synopses, :dependent => :delete_all
  has_many :keywordprogram, :dependent => :delete_all
  has_many :credit_item, :dependent => :delete_all
  has_many :episode_of, :dependent => :delete_all
  has_many :member_of, :dependent => :delete_all
end
